	// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
	// Jad home page: http://www.kpdus.com/jad.html
	// Decompiler options: packimports(3) 
	// Source File Name:   EBookWindowTitle.java

	package com.kaylyn.frame;

	import com.kaylyn.util.Resource;
	import java.awt.*;
	import java.awt.geom.Rectangle2D;
	import javax.swing.*;

	public class EBookWindowTitle extends JPanel {

		public EBookWindowTitle(JFrame mainWindow) {
			setTitle();
			setCursor();
		}

		/*
		 * (non-javadoc)
		 */
		private EBookWindowContentPanel eBookWindowContentPanel;

		private void setTitle() {
			setBackground(Color.BLACK);
			setBorder(BorderFactory.createLineBorder(Color.GRAY));
			JLabel title = new JLabel("For Kaylyn");
			title.setForeground(Color.WHITE);
			Font font = new Font("MyFont", 0, 10);
			title.setFont(font);
			add(title);
		}

		private void setCursor() {
			Toolkit toolkit = Toolkit.getDefaultToolkit();
			java.awt.Cursor cursor = toolkit.createCustomCursor(Resource
					.loadImage("dd.png"), new Point(16, 16), null);
			setCursor(cursor);
		}

		public void paintComponent(Graphics g) {
			super.paintComponent(g);
			Graphics2D g2 = (Graphics2D) g;
			g2.setPaint(new GradientPaint(0.0F, 0.0F, Color.RED, getWidth(),
					getHeight(), Color.WHITE, true));
			Rectangle2D rect = new java.awt.geom.Rectangle2D.Double(0.0D, 0.0D,
					getWidth(), getHeight());
			g2.fill(rect);
		}

		private static final long serialVersionUID = 1L;

		/**
		 * Getter of the property <tt>eBookWindowContentPanel</tt>
		 * 
		 * @return Returns the eBookWindowContentPanel.
		 * 
		 */

		public EBookWindowContentPanel getEBookWindowContentPanel() {
			return eBookWindowContentPanel;
		}

		/**
		 * Setter of the property <tt>eBookWindowContentPanel</tt>
		 * 
		 * @param eBookWindowContentPanel
		 *            The eBookWindowContentPanel to set.
		 * 
		 */
		public void setEBookWindowContentPanel(
				EBookWindowContentPanel eBookWindowContentPanel) {
			this.eBookWindowContentPanel = eBookWindowContentPanel;
		}
	}
